﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DnaCoreLib
{
    public class MenuApplication
    {
        public MenuApplication(string app)
        {
            App = app;
        }

        public MenuApplication(string app, string displayName)
        {
            App = app;
            DisplayName = displayName;
        }

        public string App { get; set; }
        public string DisplayName { get; set; }
        public override string ToString()
        {
            if (String.IsNullOrEmpty(DisplayName))
            {
                return App;
            }
            else
            {
                return DisplayName;
            }
        }
    }

}
